Conditions | 2 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import OS from '../client/OS' |
||
12 | install = async (): Promise<boolean> => { |
||
13 | if (await this.isInstalled()) { |
||
14 | error(`${this.name} already is installed.`) |
||
15 | return false |
||
16 | } |
||
17 | |||
18 | info(`Installing ${this.name}...`) |
||
19 | await OS.getInstance().packageManager.install(this.alias, false) |
||
20 | return true |
||
21 | } |
||
51 |